package com.js.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

public class Const {

    public final static String SERVER_ADDRESS = "https://www.jsyn.xyz:8001";

    @AllArgsConstructor
    public enum BASE_YES_NO {

        YES("1"), NO("0");

        @Getter
        private String value;

        public static BASE_YES_NO getByValue(String value){
            for (BASE_YES_NO type : BASE_YES_NO.values()){
                if(type.getValue().equals(value)){
                    return type;
                }
            }
            return null;
        }
    }
}
